<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>原生 AJAX 示例</title>
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container">
    <h1>AJAX 数据请求示例</h1>

    <div class="controls">
        <button id="loadUsers">加载用户列表</button>
        <button id="loadPosts">加载文章列表</button>
        <button id="clearData">清空数据</button>
    </div>

    <div id="loading" class="loading hidden">加载中...</div>

    <div id="dataContainer" class="data-container">
        <!-- 动态加载的数据将显示在这里 -->
    </div>
</div>

<script src="js/main.js"></script>
</body>
</html>
